<template>
  <user-create :id="id" @cancel="cancel"></user-create>
</template>

<script>
import UserCreate from "../../components/userAdd.vue";
export default {
  components: {
    UserCreate,
  },
  data() {
    return {
      id: "",
    };
  },
  created() {
    const { id } = this.$route.params;
    this.id = id;
  },
  methods: {
    cancel() {
      this.$router.push(`/organization/transport/user/${this.id}`);
    },
  },
};
</script>